package com.study.datetype_study;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Calendar;
import java.util.Date;

/**
 * @author liuguibin
 * @date 2020-12-09 13:24
 */
public class TestLog {
    protected static final  Logger logger = LoggerFactory.getLogger(TestLog.class);
    public static void main(String[] args) {
        // logger.error("3333");
        Date date = new Date();
        Calendar instance = Calendar.getInstance();
        int i = instance.get(Calendar.YEAR);
        int i1 = instance.get(Calendar.DATE);
        int i2 = instance.get(Calendar.HOUR);
        int i3 = instance.get(Calendar.MINUTE);
        int i4 = instance.get(Calendar.SECOND);
        int i5 = instance.get(Calendar.WEEK_OF_YEAR);
        int i6 = instance.get(Calendar.WEEK_OF_MONTH);
        int i7 = instance.get(Calendar.DAY_OF_WEEK);
        int i8 = instance.get(Calendar.AM_PM);

        System.out.println("年:"+i);
        System.out.println("年:"+i1);
        System.out.println("年:"+i2);
        System.out.println("年:"+i3);
        System.out.println("年:"+i4);
        System.out.println("年:"+i5);
        System.out.println("年:"+i6);
        System.out.println("年:"+i7);
        System.out.println("年:"+i8);
    }
}
